import request from '@/config/axios'

export interface ReceiveNumberVO {
  id: number
  entId: string
  number: string
  remark: string
  followStatus: boolean
  tag: string
}

// 查询联系号码分页
export const getReceiveNumberPage = async (params) => {
  return await request.get({ url: `/ent/receive-number/page`, params })
}

// 查询联系号码详情
export const getReceiveNumber = async (id: number) => {
  return await request.get({ url: `/ent/receive-number/get?id=` + id })
}

// 新增联系号码
export const createReceiveNumber = async (data: ReceiveNumberVO) => {
  return await request.post({ url: `/ent/receive-number/create`, data })
}

// 修改联系号码
export const updateReceiveNumber = async (data: ReceiveNumberVO) => {
  return await request.put({ url: `/ent/receive-number/update`, data })
}

// 删除联系号码
export const deleteReceiveNumber = async (id: number) => {
  return await request.delete({ url: `/ent/receive-number/delete?id=` + id })
}

// 导出联系号码 Excel
export const exportReceiveNumber = async (params) => {
  return await request.download({ url: `/ent/receive-number/export-excel`, params })
}